package com.csii.activiti.server.core.utils;

import cn.hutool.core.lang.Snowflake;

import java.io.UnsupportedEncodingException;

public class URLUtils {

    public static String decode(String str){
        try {
            return java.net.URLDecoder.decode(str,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public static String encode(String str){
        try {
            return java.net.URLEncoder.encode(str,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

}
